﻿// Decompiled with JetBrains decompiler
// Type: TaleWorlds.CampaignSystem.Conversation.Tags.PlayerIsNobleTag
// Assembly: TaleWorlds.CampaignSystem, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E85F8C15-4DF6-4E9C-A58A-29177E40D07A
// Assembly location: D:\steam\steamapps\common\Mount & Blade II Bannerlord\bin\Win64_Shipping_Client\TaleWorlds.CampaignSystem.dll

using System;
using System.Linq;
using TaleWorlds.CampaignSystem.Settlements;

#nullable disable
namespace TaleWorlds.CampaignSystem.Conversation.Tags
{
  public class PlayerIsNobleTag : ConversationTag
  {
    public const string Id = "PlayerIsNobleTag";

    public override string StringId => nameof (PlayerIsNobleTag);

    public override bool IsApplicableTo(CharacterObject character)
    {
      return Settlement.All.Any<Settlement>((Func<Settlement, bool>) (x => x.OwnerClan == Hero.MainHero.Clan));
    }
  }
}
